FROM maven:3.5-jdk-8
WORKDIR /app
COPY . .
COPY settings.xml /root/.m2/
RUN mvn package
EXPOSE 9090
ENTRYPOINT ["java","-jar","/app/target/demo-0.0.1-SNAPSHOT.jar"]